import request from '../../util/request'

export function login (datas) {
  const data = datas
  return request({
    url: '/users/getUserToken',
    method: 'post',
    data
  })
}
export function register (datas) {
  let data = datas
  return request({
    url: '/users/adduser',
    method: 'post',
    data
  })
}

export function getUserInfo (datas) {
  let data = datas
  return request({
    url: '/users/getUserInfoByToken',
    method: 'post',
    data
  })
}
